{% comment %}
#    This file is part of OpenPolitik.
#
#    OpenPolitik is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    OpenPolitik is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with OpenPolitik.  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
<html>
	<head>
		<link rel = "stylesheet" type = "text/css" href = "/stylesheets/main.css" />
		<title>{% block title %}OpenPolitik{% endblock %}</title>
	</head>
	<body>
		<div id = "nav_bar">
			{% block nav_bar %}
				{% if liu %}
					Logged in as {{ liu.nickname }} |
					<a href = "/games">Games</a> |
					<a href = "/prefs">Preferences</a> |
				{% else %}
					Not Logged In |
				{% endif %}
				<a href = "/">Home</a> |
				<a href = "{{ login_url }}">{{ login_url_linktext }}</a>
			{% endblock %}
		</div>
		<div id = "content">
			{% if flash_msg %}
				<div class = "flash_msg">{{ flash_msg }}</div>
			{% endif %}
			{% block content %}{% endblock %}
		</div>
		<hr style = "margin-top: 20px" />
		<div id = "bottom-bar">
			<a href = "http://code.google.com/p/openpolitik/" target = "_blank">Code</a> |
			<a href = "http://www.gnu.org/licenses/gpl-3.0.txt" target = "_blank">Licence</a> |
			<a href = "http://code.google.com/p/openpolitik/issues/list" target = "_blank">Report a Bug</a>
		</div>
		<script type = "text/javascript" src = "/js/main.js"></script>
		<script type = "text/javascript" src = "/js/protaculous1.8.js"></script>
	</body>
</html>
